<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			//语言信息
			if(!uni.getStorageSync('lang')){
				var lang = 'cn';
			}
			try{
				const res = uni.getSystemInfoSync();
				lang = res.language;
				if(lang.indexOf('zh') != -1){
					uni.setStorageSync('lang','cn');
				}else{
					uni.setStorageSync('lang','en');
				}
				// uni.removeStorageSync('user')
			}catch(e){
				cons.log('error='+e);
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import "colorui/main.css";
	@import "colorui/icon.css";
	@import "colorui/animation.css";
	@import "common/app.css";
</style>
